home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 468 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  670 b 

  1. Path: news.pix.za!usenet
  2. From: js000021@pixie.co.za (Smit JS)
  3. Newsgroups: comp.lang.c++
  4. Subject: Pointer to function in C++
  5. Date: Thu, 04 Jan 1996 18:03:35 GMT
  6. Organization: PiX - Proxima information X-change
  7. Message-ID: <4chivn$d8b@hawk.pix.za>
  8. NNTP-Posting-Host: 196.23.60.102
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I am trying to declare a pointer to a function : 
  12. say void (*funct) (char *);
  13. Then the address of the function is obtained  by using another
  14. function: funct = funct2(param);
  15. The BC3.1 compiler accepts this in C mode, but not in C++ mode.
  16. How can this be done in C++ please?
  17. Any help will be greatly appreciated
  18. Thanks 
  19. Johan Smit
  20. js000021@pixie.co.za
  21.  
  22.